﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/SiteNoBar.Master" Inherits="System.Web.Mvc.ViewPage<GUI_Web.ServicioDocumentos.Document>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	<h2>Detalles de documento</h2>
    <p>Muestra la información completa asociada a un documento.</p>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Detalles del documento "<%: Model.DocumentName %>"</h2>

    <fieldset class="details">
        <legend>Detalles</legend>
        
        <div class="display-label">DateDelivery</div>
        <div class="display-field"><%: String.Format("{0:g}", Model.DateDelivery) %></div>
        
        <div class="display-label">DateExpiration</div>
        <div class="display-field"><%: String.Format("{0:g}", Model.DateExpiration) %></div>
        
        <div class="display-label">DateReception</div>
        <div class="display-field"><%: String.Format("{0:g}", Model.DateReception) %></div>
        
        <div class="display-label">DocumentConsecutive</div>
        <div class="display-field"><%: Model.DocumentConsecutive %></div>
        
        <div class="display-label">DocumentName</div>
        <div class="display-field"><%: Model.DocumentName %></div>
        
        <div class="display-label">DocumentType</div>
        <div class="display-field"><%: Model.DocumentType %></div>
        
        <div class="display-label">UserReceiverName</div>
        <div class="display-field"><%: Model.UserReceiverName %></div>
        
        <div class="display-label">UserSenderName</div>
        <div class="display-field"><%: Model.UserSenderName %></div>

        <div class="display-label"><%: Html.ActionLink("Descargar", "DownloadDocument", new { consecutivoDocumento = Model.DocumentConsecutive })%> | <%: Html.ActionLink("Historial", "DocumentHistory", new { consecutivoDocumento = Model.DocumentConsecutive })%></div>
        
    </fieldset>
    <p>
        <%: Html.ActionLink("Regresar", "DocumentResults") %>
    </p>

</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>

